#include "Quene.h"



int main()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);

	int head = QueueFront(&q);
	int ptail = QueueBack(&q);
	printf("head  =  %d     ptail  =  %d\n", head, ptail);

	QueuePop(&q);
	 head = QueueFront(&q);
	 ptail = QueueBack(&q);
	printf("head  =  %d     ptail  =  %d\n", head, ptail);

	QueuePop(&q);
	 head = QueueFront(&q);
	 ptail = QueueBack(&q);
	printf("head  =  %d     ptail  =  %d\n", head, ptail);

	QueuePop(&q);
	 head = QueueFront(&q);
	 ptail = QueueBack(&q);
	printf("head  =  %d     ptail  =  %d\n\n\n", head, ptail);



	int size = QueueSize(&q);
	int empty = QueueEmpty(&q);
	printf("size  =  %d     empty  =  %d\n", size, empty);

	QueueDestroy(&q);
	return 0;
}